# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=ciwiki
pkgver=3.0.4
pkgrel=0
pkgdesc="personal lightweight wiki written in C"
url="https://ciwiki.sourceforge.net/"
arch="all"
license="GPL-2.0-or-later"
options="!check"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/ciwiki/ciwiki-$pkgver.tar.gz
	gcc-10.patch
	musl.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--libexecdir=/usr/lib/ciwiki
	make
}

package() {
	make install DESTDIR="$pkgdir"

}

sha512sums="
378d5355190a5f858b05a108817a4c6c8631a529366c77a3a1d31fde3628868f359a400f51ec817662d6919b241fb9839c4e40ecf88de14067182c10b9ce4d99  ciwiki-3.0.4.tar.gz
f5fa892f36d2341f37ffedf088231eb471cd8609330fa6e5b830a87bbc3c46ab25284973cdf166a61c10d3dcf4a8ac8c85b88e21a02c5f0869a845d0ef97ce11  gcc-10.patch
e5f3fc048f8ab7eaa9fdd6b12792140dc2a7f0e56336ef513765b8c177b2756e9f27346660bb715908bd99c1abf56906821ab67d1058357964843d59591b50ff  musl.patch
"
